﻿using System;

namespace DCT.CodeBox.BMS.Code
{
    /* 枚举定义 */

    /// <summary>
    /// 用户状态
    /// </summary>
    public enum UserStatus { 
        /// <summary>
        /// 正常状态
        /// </summary>
        Normal = 0,
        /// <summary>
        /// 被禁用，不能登录
        /// </summary>
        Forbidden
    }

    /// <summary>
    /// 登录类型
    /// </summary>
    public enum LoginType { 
        /// <summary>
        /// 用户名密码
        /// </summary>
        UserPassword,
        /// <summary>
        /// 自动登陆
        /// </summary>
        Autologin
    }

    /// <summary>
    /// 登录结果
    /// </summary>
    public enum LoginResult { 
        /// <summary>
        /// 未知
        /// </summary>
        Unknown,
        /// <summary>
        /// 登录成功
        /// </summary>
        Success,
        /// <summary>
        /// 用户名密码错误
        /// </summary>
        UserOrPasswordInvalid,
        /// <summary>
        /// 自动登录标记错误
        /// </summary>
        AutologinTokenInvalid,
        /// <summary>
        /// IP被禁用
        /// </summary>
        BanIP,
        /// <summary>
        /// 用户被禁用
        /// </summary>
        BanUser,
        /// <summary>
        /// 禁用某种角色
        /// </summary>
        BanRole,
        /// <summary>
        /// 系统异常
        /// </summary>
        SystemError
    }

    /// <summary>
    /// 角色定义
    /// </summary>
    public enum RoleStatus {
        /// <summary>
        /// 正常状态
        /// </summary>
        Normal,
        /// <summary>
        /// 被禁用，不能登录
        /// </summary>
        Forbidden
    }

    /// <summary>
    /// 数据字典类型
    /// </summary>
    public enum DataDictionaryType { 
        /// <summary>
        /// 未知、未定义
        /// </summary>
        Unknown
    }

    /// <summary>
    /// 数据字典状态
    /// </summary>
    public enum DataDictionaryStatus {
        /// <summary>
        /// 正常状态
        /// </summary>
        Normal,
        /// <summary>
        /// 被禁用，不能选择使用
        /// </summary>
        Forbidden
    }

    /// <summary>
    /// 操作数据结果
    /// </summary>
    public enum DataResult { 
        /// <summary>
        /// 未知、未定义
        /// </summary>
        Unknown,
        /// <summary>
        /// 操作成功
        /// </summary>
        Success,
        /// <summary>
        /// 标识不合法
        /// </summary>
        IdentifierInvalid
    }
}
